import os
import re

files_ = os.listdir('/data/NSH/data')
tm_file = open('/data/NSH/timestamps.txt', 'w')

for file in files_:
    tmstamp = file.split('.')[0]
    tm_file.write(tmstamp + "\n")
